import request from '..'

// 获取所有类型
const queryTypeListRequest = async () => {
  const result = await request('/type/blog/list')
  return result
}
// 根据类型获取对应文章
const queryArticleByTypeRequest = async id => {
  const result = await request({
    method: 'get',
    url: `/type/blog/list/${id}`,
  })
  return result
}
export { queryTypeListRequest, queryArticleByTypeRequest }
